package com.lbl.ClassLoaderTest;

import java.net.URL;
import java.security.Provider;

public class ClassLoaderTest02 {
    public static void main(String[] args) {
        System.out.println("***********启动类加载器***********");
        //获取BootstrapCLassLoader能够加载的api的路径
        URL[] urLs = sun.misc.Launcher.getBootstrapClassPath().getURLs();
        for (URL element : urLs) {
            System.out.println(element.toExternalForm());
        }
        //从上面的路径中随意选择一个类,来看看他的类加载器是什么:
        ClassLoader classLoader = Provider.class.getClassLoader();
        System.out.println(classLoader);
    }
}
